<?php

use hisorange\BrowserDetect\Parser as Browser;
use Illuminate\Support\Facades\Route;
use Illuminate\Support\Facades\Log;

Route::fallback(function () {
    if (Browser::isMobile()) {
        Log::info("mobile");
        return view("mobile");
    } else {
        return view("desktop");
    }
});
